package za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.Strategy.Model;


import za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.Strategy.Model.Strategy;


public class Context 
{
    int tempretureInF;
    Strategy strategy;

    public Context(int tempretureInF, Strategy strategy) 
    {
        this.tempretureInF = tempretureInF;
        this.strategy = strategy;
    }

    public void setStrategy(Strategy strategy) { this.strategy = strategy; }

    public Strategy getStrategy() { return strategy; }

    public boolean getResult(){ return strategy.checkTempreture(tempretureInF); }
}